part of '../repository.dart';

class _TransactionHistoryGettingSuccessfulResponseBodyDto extends Equatable {
  const _TransactionHistoryGettingSuccessfulResponseBodyDto._internal({
    required this.hasMore,
    required this.revisionToken,
    required this.signedTransactions,
  });

  final bool hasMore;
  final String revisionToken;
  final BuiltList<String> signedTransactions;

  @override
  List<Object?> get props {
    return [
      hasMore,
      revisionToken,
      signedTransactions,
    ];
  }

  factory _TransactionHistoryGettingSuccessfulResponseBodyDto.fromJson(Map<String, dynamic> json) {
    final signedTransactions = List.castFrom<dynamic, String>(json['signedTransactions']).build();

    return _TransactionHistoryGettingSuccessfulResponseBodyDto._internal(
      hasMore: json['hasMore'],
      revisionToken: json['revision'],
      signedTransactions: signedTransactions,
    );
  }
}
